#include<stdio.h>
#include<string.h>
char num[20][20]={"zero","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"};
char tens[20][20]={"","","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"};
int main(){
    int x;
    scanf("%d",&x);
    int bj=0;
    if(x>=1000||x<0){
        printf("ERR");
        return 0;
    }
    while(x!=0)
    {
        bj=1;
        if(x<100){
        if(x<20){
            printf("%s",num[x]);
            x=0;
        }
        else{
            int sw=x/10;
            printf("%s",tens[sw]);
            x=x-sw*10;
            if(x!=0)printf("-");
        }
         }
        if(x>=100){
            int bw=x/100;
            printf("%s hundred",num[bw]);
            x=x-bw*100;
            if(x!=0)printf(" and ");
        }
    }
    if(!bj)printf("%s",num[0]);
    return 0;
}